using System.Linq.Expressions;
using Charisma.MongoDb.Linq.Expressions;

namespace Charisma.MongoDb.Linq
{
  internal static class ExpressionExtensions
  {
    public static bool IsProjection(this Expression expression)
    {
      return (MongoExpressionType)expression.NodeType == MongoExpressionType.Projection;
    }
  }
}